package com.jk.service;

import com.jk.entity.ClothEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.ws.rs.POST;
import java.util.HashMap;

/**
 * @详细介绍接口情况.
 * @InterfaceName ShopService
 * @Author 张荣鑫
 * @Date 2022/6/2
 * @Version 1.0
 */
@Component
@FeignClient(value = "CLOTH-PROVIDE")
public interface ShopService {
    /**
     * @方法名称:查询新品
     * @author 张荣鑫
     * @return java.lang.Object
     * @exception
     * @date 2022/6/2 10:23
     */
    @RequestMapping("/zrx/queryAllShop")
    HashMap<String, Object> queryAllShop(@RequestParam String name);

    /**
     * @方法名称:查看商品
     * @author 张荣鑫
     * @return java.lang.Object
     * @exception
     * @date 2022/6/6 10:39 
     * @param shopId
     */
    @RequestMapping("/zrx/getShopBynum")
    Object getShopBynum(@RequestParam Integer shopId);

    /**
     * @方法名称:添加购物车
     * @author 张荣鑫
     * @return java.lang.String
     * @exception
     * @date 2022/6/6 17:00
     * @param shopId
     * @param num
     */
    @RequestMapping("/zrx/addshopCar")
    String addshopCar(@RequestParam Integer shopId,@RequestParam Integer num);

    /**
     * @方法名称:查询男子商品列表
     * @author 张荣鑫
     * @return java.util.HashMap<java.lang.String, java.lang.Object>
     * @exception
     * @date 2022/6/7 14:17
     */
    @RequestMapping("/zrx/queryManShop")
    HashMap<String, Object> queryManShop();

    /**
     * @方法名称:查询女子商品列表
     * @author 张荣鑫
     * @return java.util.HashMap<java.lang.String, java.lang.Object>
     * @exception
     * @date 2022/6/7 14:47
     */
    @RequestMapping("/zrx/queryWomanShop")
    HashMap<String, Object> queryWomanShop();

    /**
     * @方法名称:查询特价商品
     * @author 张荣鑫
     * @return java.util.HashMap<java.lang.String, java.lang.Object>
     * @exception
     * @date 2022/6/9 11:22
     */
    @RequestMapping("/zrx/querytejia")
    HashMap<String, Object> querytejia();
}


